-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: use subtree option in getAnimations #8325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Thanks! If you have time, would be awesome if you could add an example to storybook with an exit animation on a child element of the popover so we can verify that it works. |
@devongovett |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like both entering and exiting are working as expected in Chrome and FF.
In Safari, only exiting is working as expected.
}}> | ||
<style> | ||
{` | ||
.react-aria-Popover[data-exiting] .content, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the issue for Safari from what I can tell.
.react-aria-Popover[data-exiting] .content, | |
@starting-style { | |
.react-aria-Popover .content { | |
opacity: 0; | |
} | |
} | |
.react-aria-Popover[data-exiting] .content, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@snowystinger
Thanks for the Safari testing!
I've added @starting-style to the Storybook example to address the enter animation issue in Safari. However, this is a CSS-level consideration that developers will need to handle in their own implementations when targeting Safari.
I'm not sure of the best way for React Aria to help developers discover this Safari-specific requirement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I don't think this should be necessary. data-entering
should be enough. If it isn't working, then that's a bug we should investigate.
Closes #8174
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: